1 A Large Heading

1.1 A smaller heading

1.1.1 A bit smaller heading

1.1.1.1 A much smaller heading

This report uses the tidyverse package along with the beetle_data dataset, which has columns including:

  • counts
  • Tmax
  • dist_to_edge

You can insert line breaks like this.
and they should work.


You can define paragraphs like this:

This is the topic sentence of my paragraph. Now I move to my second sentence which is on topic but a bit more specific.

Let’s start a new paragraph. This is a short one.


If you don’t like using paragraphs, you can just use line breaks and get a similar effect.

2 R code

You can embed an R code chunk like this:

summary(beetle_data)
##      counts           Tmax        dist_to_edge    
##  Min.   : 1.00   Min.   :23.29   Min.   :  1.229  
##  1st Qu.: 7.25   1st Qu.:26.95   1st Qu.: 47.683  
##  Median :12.00   Median :28.22   Median :101.816  
##  Mean   :13.47   Mean   :28.15   Mean   :100.816  
##  3rd Qu.:17.75   3rd Qu.:29.26   3rd Qu.:147.201  
##  Max.   :40.00   Max.   :31.88   Max.   :198.556

You can suppress the R code being printed in the HTML like this:

##      counts           Tmax        dist_to_edge    
##  Min.   : 1.00   Min.   :23.29   Min.   :  1.229  
##  1st Qu.: 7.25   1st Qu.:26.95   1st Qu.: 47.683  
##  Median :12.00   Median :28.22   Median :101.816  
##  Mean   :13.47   Mean   :28.15   Mean   :100.816  
##  3rd Qu.:17.75   3rd Qu.:29.26   3rd Qu.:147.201  
##  Max.   :40.00   Max.   :31.88   Max.   :198.556

You can suppress the summary being printed in the HTML like this:

summary(beetle_data)

To include a nice grey line between sections, just use:


3 Including Plots

You can embed plots, for example:

3.1 now John is showing off

You can specify the size and justification of r plots like this, as well as add a caption:

Figure 1: Here is the same plot with solid salmon points.

Figure 1: Here is the same plot with solid salmon points.


4 Add Images

Figure 1. If you try and take a photo of John he will do this because he is a bogan and a juvenile
Figure 1. If you try and take a photo of John he will do this because he is a bogan and a juvenile


Add another image, this time not centered.

Figure 2. These flowers are ridiculous
Figure 2. These flowers are ridiculous


5 Add a nice table

Table 1. The first 6 rows of beetle_data
counts Tmax dist_to_edge
3 30.11922 62.687955
12 26.08759 27.499806
8 26.07227 1.229062
18 29.41769 191.264251
7 26.13884 80.816164
9 27.88800 93.766413

6 Add an equation

\(t = \frac{m - \mu}{s /\sqrt n}\)

\(m\) is the sample mean;
\(\mu\) is the “population” mean (a hypothetical value that you’re testing against);
\(s\) is the standard deviation;
\(n\) is the sample size.


8 Citation

Add citation here (R-base?)

References